import { request } from '@/api/service'

export const urlProPrefix = '/ai/projects/'

export function GetProList (query) {
  return request({
    url: urlProPrefix,
    method: 'get',
    params: { ...query }
  })
}

export function DelProObj (id) {
  return request({
    url: urlProPrefix + id + '/',
    method: 'delete',
    data: { soft_delete: true }
  })
}

export function UpdateObj (obj) {
  return request({
    url: urlProPrefix + obj.id + '/',
    method: 'put',
    data: obj
  })
}
